﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:models="clr-namespace:LiSAClient.Core.Models;assembly=LiSAClient.Core">
    
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Themes/Default_Menus.xaml" />
        <ResourceDictionary Source="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Converters.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Selectors.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <SolidColorBrush x:Key="MainWindowBackground" Color="#FFFFFF" />
    <SolidColorBrush x:Key="MainContentBackground" Color="#FCFCFC" />
    <SolidColorBrush x:Key="DetachedContentBackground" Color="#FCFCFC" />
    <SolidColorBrush x:Key="LiSABlue" Color="#014B6B" />
    <SolidColorBrush x:Key="LiSALightBlue" Color="#316D87" />
    <SolidColorBrush x:Key="LiSALighterBlue" Color="#3C758D" />
    <SolidColorBrush x:Key="LiSAMediumBlue" Color="#016089" />
    <SolidColorBrush x:Key="LiSABlueGrayBackground" Color="#F5F5F5" />

    <!-- 
        ICON: 
        Use this link:
        http://www.icoconverter.com/
      -->
    <Style x:Key="WindowStyle" TargetType="Window">
        <Setter Property="Icon" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Icons/test_icon.ico"/>
    </Style>
    
    <!--Buttons-->
    <Style TargetType="{x:Type Button}">
        <Setter Property="SnapsToDevicePixels" Value="true" />
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="MinHeight" Value="30" />
        <Setter Property="MinWidth" Value="75" />
        <Setter Property="Foreground" Value="White" />
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Background" Value="{StaticResource LiSABlue}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" BorderThickness="0" Background="{StaticResource LiSABlue}">
                        <ContentPresenter Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center"
                                          RecognizesAccessKey="True" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                            <Setter TargetName="Border" Property="BorderBrush"
                                    Value="{StaticResource LiSAMediumBlue}" />
                        </Trigger>
                        <Trigger Property="IsDefaulted" Value="true">
                            <Setter Property="Foreground" Value="White"></Setter>
                            <Setter TargetName="Border" Property="BorderBrush"
                                    Value="{StaticResource LiSAMediumBlue}" />
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource LiSAMediumBlue}" />
                            <Setter Property="Cursor" Value="Hand"></Setter>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="#E0E0E0" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="#606060" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="True">
                            <Setter Property="Foreground" Value="White" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" Value="#EFEFEF" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="LightBlueButton" TargetType="Button">
        <Setter Property="Background" Value="{StaticResource LiSALighterBlue}" />
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="White" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{StaticResource LiSAMediumBlue}" />
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="LightGreenButton" TargetType="Button">
        <Setter Property="Background" Value="#77DD77" />
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="White" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{StaticResource LiSAMediumBlue}" />
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="LightWhiteButton" TargetType="Button">
        <Setter Property="Background" Value="White" />
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="{StaticResource LiSAMediumBlue}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{StaticResource LiSALightBlue}" />
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="LightWhiteButtonNextToTextBox" TargetType="Button">
        <Setter Property="Background" Value="White" />
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Foreground" Value="{StaticResource LiSAMediumBlue}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{StaticResource LiSALightBlue}" />
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="GreyButton" TargetType="Button">
        <Setter Property="Background" Value="#E6E7E8" />
        <Setter Property="BorderBrush" Value="#B0B0B0"/>
        <Setter Property="Padding" Value="10,5"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="10, 0, 0, 0"/>

        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <!--Button that holds an image-->
    <Style x:Key="buttonImageHolder" TargetType="Button">
        <Setter Property="Padding" Value="4,4,4,4"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="ToolTipService.ShowOnDisabled" Value="True"/>
        <Setter Property="ToolTipService.IsEnabled" Value="True"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Height" Value="35"/>
        <Setter Property="Width" Value="35"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <!-- Header -->
    <Style x:Key="HeaderStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"></Setter>
        <Setter Property="BorderBrush" Value="#C7C7C7"></Setter>
        <Setter Property="BorderThickness" Value="0, 0, 0, 1"></Setter>
    </Style>

    <Style x:Key="LogoStyle" TargetType="Image">
        <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/LiSA_logo.png"></Setter>
        <Setter Property="Stretch" Value="None"></Setter>
        <Setter Property="Margin" Value="20,0"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
    </Style>

    <!-- LoginBox -->
    <Style x:Key="LoginBoxBorderStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"></Setter>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="MinWidth" Value="400"/>
        <Setter Property="MinHeight" Value="200"/>
        <Setter Property="Margin" Value="0, -100, 0, 0"/>
        <Setter Property="BorderBrush" Value="{StaticResource LiSALightBlue}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>

    <Style x:Key="LoginBoxGridStyle" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"/>
        <Setter Property="Margin" Value="20"/>
    </Style>

    <Style x:Key="LoginBoxTextBlockStyle" TargetType="TextBlock">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="#333333"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
    </Style>

    <Style x:Key="LoginBoxCheckBockStyle" TargetType="CheckBox">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="#B7A8B6"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
    </Style>

    <Style x:Key="LoginBoxTextBoxStyle" TargetType="TextBox">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="#333333"/>
        <Setter Property="Padding" Value="5, 0, 5, 0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>

    <Style x:Key="LoginBoxPasswordBoxStyle" TargetType="PasswordBox">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="#333333"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Padding" Value="5, 0, 5, 0"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>

    <Style x:Key="TextBlockPageHeaderStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="#404040"/>
        <Setter Property="FontSize" Value="25"/>
        <Setter Property="Margin" Value="0, 0, 0, 20"/>
    </Style>
    
    <Style x:Key="TextBoxInputStyle" TargetType="TextBox">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"></Setter>
        <Setter Property="Margin" Value="5"></Setter>
        <Setter Property="Height" Value="30"></Setter>
        <Setter Property="FontSize" Value="16"></Setter>
        <Setter Property="Width" Value="250"></Setter>
        <Setter Property="Foreground" Value="#333333"></Setter>
        <Setter Property="Padding" Value="5, 0, 5, 0"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
    </Style>
    
    <Style x:Key="ComboBoxInputStyle" TargetType="ComboBox">
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"></Setter>
        <Setter Property="Margin" Value="5,0,5,0"></Setter>
        <Setter Property="Height" Value="30"></Setter>
        <Setter Property="FontSize" Value="16"></Setter>
        <Setter Property="Foreground" Value="#333333"></Setter>
        <Setter Property="Padding" Value="5, 0, 5, 0"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
    </Style>

    <Style x:Key="HyperlinkLikeButton" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <ContentPresenter />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FontSize" Value="14" />
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HotTrackBrushKey}}" />
        <Setter Property="Cursor" Value="Hand" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Foreground" Value="{DynamicResource LiSABlue}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <ControlTemplate.Resources>
                                <Style TargetType="{x:Type TextBlock}">
                                    <Setter Property="TextDecorations" Value="Underline" />
                                </Style>
                            </ControlTemplate.Resources>
                            <ContentPresenter />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="LoginBoxButtonStyle" TargetType="Button" BasedOn="{StaticResource LightBlueButton}">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Width" Value="100"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=LoginEnabled}" Value="False">
                <Setter Property="Background" Value="#EFEFEF"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <!--UserInfo panel-->
    <Style x:Key="UserInfoNameStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="16"></Setter>
        <Setter Property="Foreground" Value="#7F7F7F"></Setter>
        <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
        <Setter Property="TextAlignment" Value="Right"></Setter>
        <Setter Property="Margin" Value="0,0,0,0"></Setter>
    </Style>

    <Style x:Key="UserInfoOrganizationStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="11"></Setter>
        <Setter Property="Foreground" Value="#7F7F7F"></Setter>
        <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
        <Setter Property="TextAlignment" Value="Right"></Setter>
        <Setter Property="Margin" Value="0,0,0,0"></Setter>
    </Style>
    
    <!--Notification Window-->
    <Style TargetType="Window" x:Key="NotificationWindow" BasedOn="{StaticResource WindowStyle}">
        <Setter Property="Width" Value="416"/>
        <Setter Property="Height" Value="217"/>
        <Setter Property="BorderBrush" Value="{StaticResource LiSABlue}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Info}">
                <Setter Property="Background" Value="#d1e4f3"/>
                <Setter Property="BorderBrush" Value="#4b90c9"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Warning}">
                <Setter Property="Background" Value="#FFE9AD"/>
                <Setter Property="BorderBrush" Value="#f8b415"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Error}">
                <Setter Property="Background" Value="#fccac1"/>
                <Setter Property="BorderBrush" Value="#bb0000"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="Image" x:Key="NotificationWindowImage">
        <Setter Property="Width" Value="44"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="15,15,0,0"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Info}">
                <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/Notifications/icon-info.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Warning}">
                <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/Notifications/icon-warning.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Error}">
                <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/Notifications/icon-error.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="Label" x:Key="NotificationWindowHeader">
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="12,15,0,0"/>
    </Style>

    <Style TargetType="TextBlock" x:Key="NotificationWindowBody">
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="FontSize" Value="14" />
        <Setter Property="FontWeight" Value="DemiBold" />
        <Setter Property="Width" Value="320" />
        <Setter Property="TextAlignment" Value="Left"></Setter>
    </Style>

    <Style TargetType="ScrollViewer" x:Key="NotificationScrollViewerStyle">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Height" Value="110"/>
        <Setter Property="Margin" Value="13,0,15,0"/>
    </Style>

    <Style TargetType="Button" x:Key="NotificationWindowCloseButton" BasedOn="{StaticResource LightBlueButton}">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Padding" Value="30,3,30,3"></Setter>
        <Setter Property="Margin" Value="0,15,15,15"/>
        <Setter Property="BorderThickness" Value="0,0,0,0"></Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Info}">
                <Setter Property="Background" Value="#4b90c9"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Warning}">
                <Setter Property="Background" Value="#f8b415"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding NotificationType}" Value="{x:Static models:NotificationType.Error}">
                <Setter Property="Background" Value="#bb0000"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!--MetaInfo-->
    <Style TargetType="Image" x:Key="MetaInfoImage">
        <Setter Property="Width" Value="7"/>
        <Setter Property="Height" Value="7"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/BlueSquare.png"/>
    </Style>

    <Style TargetType="Border" x:Key="MetaInfoBorderStyle">
        <Setter Property="Height" Value="30"/>
        <Setter Property="BorderThickness" Value="0,1,0,0"/>
        <Setter Property="BorderBrush" Value="#C1C1C1"/>
        <Setter Property="Background" Value="#F7F7F7"/>
    </Style>

    <Style TargetType="TextBlock" x:Key="MetaInfoTextStyle">
        <!--<Setter Property="Padding" Value="0,-3,0,0"/>-->
        <Setter Property="Margin" Value="5,-1,5,0"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="#7B7B7B"/>
    </Style>
    
    <!--Detached Window-->
    <Style x:Key="OtherWindowHeaderStyle" TargetType="Border">
        <Setter Property="Background" Value="#F7F7F7"></Setter>
        <Setter Property="BorderBrush" Value="#D2D2D2"></Setter>
        <Setter Property="BorderThickness" Value="0, 0, 0, 1"></Setter>
        <Setter Property="Padding" Value="10, 0, 10, 0"></Setter>
    </Style>

    <Style x:Key="OtherWindowContentStyle" TargetType="ContentControl">
        <Setter Property="Padding" Value="20, 0, 20, 0"></Setter>
    </Style>

    <Style x:Key="SmallLogoStyle" TargetType="Image">
        <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/LiSA_logo.png"></Setter>
        <Setter Property="Stretch" Value="Uniform"></Setter>
        <Setter Property="Margin" Value="5,5,5,5"></Setter>
        <Setter Property="VerticalAlignment" Value="Top"></Setter>
        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
    </Style>

    <!--Standard fields-->
    <Style x:Key="EditableTextBox" TargetType="{x:Type TextBox}">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Margin" Value="3,5"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Height" Value="35px"/>
        <Setter Property="BorderBrush" Value="#ABADB3"/>
        <Style.Triggers>
            <Trigger Property="IsFocused" Value="true">
                <Setter Property="BorderBrush" Value="#569DE5"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="BorderBrush" Value="#569DE5"/>
                <Setter Property="BorderThickness" Value="1"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="InformationCaption" TargetType="Label">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="25,4,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="InformationContent" TargetType="Label">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="25,4,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="InformationContentBlock" TargetType="TextBlock">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="25,4,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="InformationContentBox" TargetType="TextBox">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="25,4,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <Style x:Key="WarningCaption" TargetType="Label" BasedOn="{StaticResource InformationCaption}">
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
    </Style>

    <Style x:Key="PageCaption" TargetType="Label">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="5,5,5,5"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="RadioButtonStyle" TargetType="RadioButton">
        <Setter Property="Foreground" Value="#707070"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Margin" Value="3,4,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <!--DataGrids-->
    <Style x:Key="DataGridRowStyle" TargetType="{x:Type DataGridRow}">
        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Background" Value="#EFEFEF"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="#F8F8F8"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="DataGridColumnHeader" x:Key="DataGridColumnHeaderStyle">
        <Setter Property="Background" Value="#ff3D3D3D"/>
        <Setter Property="Foreground" Value="LightGray"/>
        <Setter Property="MinHeight" Value="30"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="BorderBrush" Value="LightGray"/>
        <Setter Property="Padding" Value="6,5"/>
        <Setter Property="FontSize" Value="12"/>
    </Style>

    <Style TargetType="DataGridColumnHeader" x:Key="DgchStyle" BasedOn="{StaticResource DataGridColumnHeaderStyle}">
        <Setter Property="BorderThickness" Value="0,0,1,0"/>
    </Style>

    <Style TargetType="DataGridColumnHeader" x:Key="DgchVertStyle" BasedOn="{StaticResource DgchStyle}">
        <Setter Property="LayoutTransform">
            <Setter.Value>
                <RotateTransform Angle="270" />
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="DataGrid" x:Key="DataGridStyle">
        <Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}"/>
        <Setter Property="Background" Value="White"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="#ff404040"/>
        <Setter Property="BorderBrush" Value="LightGray"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HeadersVisibility" Value="Column"/>
        <Setter Property="GridLinesVisibility" Value="All"/>
        <Setter Property="HorizontalGridLinesBrush" Value="LightGray"/>
        <Setter Property="VerticalGridLinesBrush" Value="LightGray"/>
        <Setter Property="RowBackground" Value="Transparent"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="ColumnHeaderStyle" Value="{StaticResource DataGridColumnHeaderStyle}"/>
    </Style>
    
    <Style TargetType="{x:Type DataGridCell}" >
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type DataGridCell}">
                    <Border x:Name="border"
                BorderBrush="Transparent"
                BorderThickness="1"
                Background="Transparent"
                SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Unfocused" />
                                <VisualState x:Name="Focused" />
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CurrentStates">
                                <VisualState x:Name="Regular" />
                                <VisualState x:Name="Current">
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="DataGridTextColumnElementStyle" TargetType="TextBlock">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="5"/>
        <Setter Property="Foreground" Value="#ff828282"/>
        <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
        <Setter Property="TextBlock.TextAlignment" Value="Left"/>
    </Style>

    <Style x:Key="DataGridCheckBoxColumnElementStyle" TargetType="CheckBox">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="#ff828282"/>
    </Style>
    
    <Style x:Key="DataGridLastRowCellStyle" TargetType="DataGridCell">
        <Setter Property="BorderThickness" Value="0"/>
    </Style>
    
    <!--ListViews-->
    <Style x:Key="AlternatingStyle" TargetType="{x:Type ListViewItem}">
        <Style.Triggers>
            <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                <Setter Property="Background" Value="LightSkyBlue"/>
            </Trigger>
            <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                <Setter Property="Background" Value="LightGray"/>
            </Trigger>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Background" Value="White"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="ListViewHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
        <Setter Property="Background" Value="LightGray" />
        <Setter Property="Padding" Value="5,0,5,0"/>
    </Style>
    
    <Style x:Key="ListViewStyle" TargetType="{x:Type ListView}">
        <Style.Resources>
            <Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource ListViewHeaderStyle}" />
        </Style.Resources>

    </Style>
</ResourceDictionary>